package data;

import java.util.Date;

public class student {
	private String id;
	private String name;
	private String depart; 
	private String EnrolmentDate;
	private String totalCredit;
	private String credit;

	public student(String id,String name,String depart,String EnrolmentDate
			,String totalCredit,String credit){
		this.id = id;
		this.name = name;
		this.depart = depart;
		this.EnrolmentDate = EnrolmentDate;
		this.totalCredit = totalCredit;
		this.credit = credit;
	}
	
	public String[] getInfo(){
		return new String[]{id,name,depart,EnrolmentDate,totalCredit,credit};
	}
	
	public String getID(){
		return id;
	}
	public String getName(){
		return name;
	}
	public String getDepart(){
		return depart;
	}
	public String getEnrolmentDate(){
		return EnrolmentDate;
	}
	public String getTotalCredit(){
		return totalCredit;
	}
	public int getCredit(){
		return Integer.valueOf(credit);
	}
	
	public String getC(){
		return credit;
	}
	public int getGrade(){
		return new Date().getYear()+1900-Integer.valueOf(EnrolmentDate);
	}
}
